import { Component, OnInit, Input, Injector } from '@angular/core';
import { NgZorroPageBaseComponent } from '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component';
import { HttpService } from "../../core/service/http.service";
import { Router, Route, ActivatedRoute } from "@angular/router";
import {
	AndOr, Compare, ExpressionPair, PagedResultDto, PagerSearchInput, ElementViewType, BaseComponentConfig,
	SystemFormControl, FieldType, CustomNavigation, ElementShowType, KeyValueOutput, SystemFormControlOutput, NavigatType, ArSystemFormControl
} from "../..";
import { NzMessageService, NzModalService } from 'ng-zorro-antd';
import {
	FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators,
	FormControl
} from "@angular/forms";
import { StudentOutput } from "../../core/model/ClassInfoDto";
// import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';

@Component({
	selector: 'app-student-test',
	templateUrl: '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component.html',
	styleUrls: ['../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component.scss']
})
export class StumanagementComponent extends NgZorroPageBaseComponent implements OnInit {
	uploading = false;
	constructor(
		injector: Injector,
		public http: HttpService,
		private modal: NzModalService
	) {
		super(injector,
			new BaseComponentConfig(
				"School/GetAllAcademe",
				"School/CreatAcademe",
				"School/UpdateAcademe",
				"School/GetAcademe",
				"School/DeleteAcademe",
				"id",
				'',
				'',
				new Array<CustomNavigation>(),
				"schoolId"
			),
			new ArSystemFormControl(
				new Array<SystemFormControl>(
				  new SystemFormControl("academeName", "学院名称", FieldType.Text, true, 30, 0, "", "", true, null, null),
				)
			)
		);
		this.showTitile = false;
	}
	getNewEntity(): StudentOutput {
		return new StudentOutput();
	}

	navigateCustom(url: string, pid: any) {
	}
	showModalForComponent(entity: any) {
	}
}
